class CreateTimelogs < ActiveRecord::Migration
  def self.up
    create_table :timelogs do |t|
       t.column :todo_id, :integer, :null => false
       t.column :start_time, :time
       t.column :end_time, :time
       t.column :desc, :string
    end
  end
  
  def self.down
    drop_table :timelogs
  end
end
